
#include "../include/AdListForAllSlots.h"

AdListForAllSlots::AdListForAllSlots(void)
{

}

AdListForAllSlots::~AdListForAllSlots(void)
{
	for (unsigned int i=0;i<m_vectorAdList.size();i++)
	{
		if (m_vectorAdList[i]!=0)
		{
			delete m_vectorAdList[i];
			m_vectorAdList[i]=0;
		}
	}
}
int AdListForAllSlots::GetSlotCount()
{
	return m_vectorAdList.size();
}

void AdListForAllSlots::AddAdList(AdListForOneSlot* adListForOneSlot)
{
	m_vectorAdList.push_back(adListForOneSlot);
}

std::vector<AdListForOneSlot*>& AdListForAllSlots::GetAdListForAll()
{
	return m_vectorAdList;
}